import request from '../../utils/request'

const api_user = '/api/user/user'


//登录
export function login(data) {
    return request({
        url: `${api_user}/login`,
        method: 'post',
        data
    })
}


//用户认证
export function userAuth(data) {
    return request({
        url: `${api_user}/auth/user`,
        method: 'post',
        data
    })
}


//获取用户信息
export function getUserInfo() {
    return request({
        url: `${api_user}/auth/get/userInfo`,
        method: 'get',
    })
}

